#通过字段匹配,合并列表
def hebingfile(list1, list2):
    strkong = "-----------"
    print(list1[0])
#打开文件
dir = r'D:/Deng/Desktop/python/实验/'
file1 = open(dir + 'TelephoneAdress.txt', encoding='utf-8')
file2 = open(dir + 'EmailAddress.txt', encoding='utf-8')
file3 = open(dir + 'AddressBook.txt', "w", encoding="utf-8")

#读取文件内容,写入列表
str1 = [i[:-1].split('\t') for i in file1.readlines()]
str2 = [i[:-1].split('\t') for i in file2.readlines()]
hebingfile(str1, str2)